<?php
global $references;
$references = array(

	"basicDummy" => array(
		"class" => "Pageley_Config_Dummy"
	),
	
	"dummyWithBasicProperty" => array(
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"property" => "dummyValue"
		)
	),
	
	"dummyWithCollectionProperty" => array(
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"property" => array(
				"key1" => "value1",
				"key2" => "value2",
				"key3" => "value3"
			)
		)
	),
	
	"dummyWithReferenceProperty" => array(
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"property" => "#{basicDummy}"
		)
	),
	
	"dummyWithReferenceInCollectionProperty" => array(
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"property" => array(
				"key1" => "#{basicDummy}",
				"key2" => "value2"
			)
		)
	),
	
	"dummyWithNestedReferenceProperty" => array(
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"property" => "#{dummyWithReferenceProperty}"
		)
	),
	
	"dummyWithIncorrectClass" => array(
		"class" => "Pageley_Config_Imaginary"
	),
	
	"dummyWithIncorrectSetter" => array (
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"imaginary" => "foo"
		)
	),
	
	"dummyWithConstructor" => array(
		"class" => "Pageley_Config_Dummy",
		"constructor" => array(
			"property" => "dummyValue"
		)
	),
	
	"dummyWithConstructorReference" => array(
		"class" => "Pageley_Config_Dummy",
		"constructor" => array(
			"property" => "#{basicDummy}"
		)
	),
	
	"dummyWithFactoryMethod" => array(
		"class" => "Pageley_Config_Dummy",
		"factoryMethod" => "getInstance"
	),
	
	"dummyWithCircularReference" => array(
		"class" => "Pageley_Config_Dummy",
		"properties" => array(
			"property" => "#{dummyWithCircularReference}"
		)
	),
	
	"dummyWithCircularConstructorReference" => array(
		"class" => "Pageley_Config_Dummy",
		"constructor" => array(
			"property" => "#{dummyWithCircularConstructorReference}"
		)
	),
	
	"decoratingDummy" => array(
	    "class" => "Pageley_Config_Dummy",
	    "constructor" => array(
	        "otherProperty" => "decorating"
	    )
	),
	
	"decoratedDummy" => array(
        "class" => "Pageley_Config_Dummy",
        "constructor" => array(
            "property" => "#{decoratingDummy(basicDummy)}"
        )
    )
	
);